package com.xinghou.platform.dao.main.timer;


import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Random;

import javax.annotation.Resource;

import com.xinghou.timer.UserActionTimerService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


/**
 * 添加浏览、点赞数量
 *
 * @author wzk
 */
@Component
public class UserActionTimer {

    private static Boolean isWorking = false;
    @Resource
    private UserActionTimerService userActionTimerService;

    @Scheduled(cron = "0/5 * * * * ?")
    public void wzkShareInfoTimer() {
        if (!isWorking) {
            isWorking = true;
            userActionTimerService.wzkShareInfoTimer();
            isWorking = false;
        }
    }
}
